package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author xiaoruan
 * @since 2023-03-22
 */
@Data
@TableName("wnxt_order")
@ApiModel(value = "Order对象", description = "订单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
      @TableId(type = IdType.ASSIGN_ID)
      private String id;

      @ApiModelProperty("购买课程id")
      private String courseId;

      @ApiModelProperty("支付宝交易号")
      private String tradeNo;

      @ApiModelProperty("下单时间")
      private Date orderTime;

      @ApiModelProperty("下单用户")
      private String userId;

      @ApiModelProperty("订单金额")
      private BigDecimal price;

      @ApiModelProperty("付款时间")
      private Date payTime;

      @ApiModelProperty("订单状态(1：待支付 2：已支付 3：进行中 4：已取消 5：已完成 6.退款中 7. 已退款)")
      private String status;
}
